package com.yf.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.yf.api.YfService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Yang_Vincent
 * @Date 2020/7/22 20:16
 */
@RestController
@RequestMapping("/")
public class TestController {

    @Reference
    private YfService yfService;

    @GetMapping("/hello/{name}")
    public String getHi(@PathVariable("name")String name){

        return this.yfService.welcome(name);
    }
}
